<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录成功欢迎页面</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        
        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            margin-top: 100px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        h1 {
            text-align: center;
            color: #333;
        }
        
        p {
            color: #666;
            line-height: 1.6;
        }
        
        .welcome-message {
            text-align: center;
            margin-bottom: 20px;
        }
        
        .button {
            display: inline-block;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            transition: background-color 0.3s;
        }
        
        .button:hover {
            background-color: #45a049;
        }
    </style>
</head>

<body>
    <div class="container">
        <h1>登录成功</h1>
        <div class="welcome-message">
            <p>欢迎您，<span id="username">用户名</span>！</p>
            <p>您已成功登录到系统。</p>
        </div>
        <a href="#" class="button">进入主页</a>
    </div>

    <script>
        // 假设这是从登录页面传递过来的用户名，实际使用时需要根据实际情况获取  
        var username = "JohnDoe";
        document.getElementById("username").textContent = username;
    </script>
</body>

</html>